home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: dd.chalmers.se!news.chalmers.se!sunic!EU.net!howland.reston.ans.net!cs.utexas.edu!swrinde!emory!news-feed-1.peachnet.edu!concert!sas!mozart.unx.sas.com!walker
- From: walker@twix.unx.sas.com (Doug Walker)
- Subject: Re: SAS Keywords (__saveds etc)
- Originator: walker@twix.unx.sas.com
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Message-ID: <CKI0po.EAF@unx.sas.com>
- Date: Mon, 31 Jan 1994 14:39:23 GMT
- References: <inf01.759746947@apollo23> <CKCG1B.Lzq@unx.sas.com> <2iiptt$soe@ugle.unit.no> <CKI0Ip.DrF@unx.sas.com>
- Nntp-Posting-Host: twix.unx.sas.com
- Organization: SAS Institute Inc.
- Lines: 37
-
-
- In article <CKI0Ip.DrF@unx.sas.com>, walker@twix.unx.sas.com (Doug Walker) writes:
- |>
- |> In article <2iiptt$soe@ugle.unit.no>, shansen@idt.unit.no (Staale L. Hansen) writes:
- |> |> In article <CKCG1B.Lzq@unx.sas.com>, jamie@cdevil.unx.sas.com (James Cooper) writes:
- |> |> [...]
- |> |> |> >c) __register
- |> |> |> > I think this is to force a parameter into a register for library
- |> |> |> > calls.
- |> |> |>
- |> |> |> *Must* be used with __asm (mentioed above); it specifies the register a
- |> |> |> parameter will arrive in when the function in called.
- |> |> |>
- |> |> |> int __asm foo(register __a3 char *bar);
- |> |> |>
- |> |> |> This says that function "foo" will receive its only parameter in register
- |> |> |> A3, rather than the default for pointers of A0.
- |> |>
- |> |> But how do you specify which register the return value will be in? As
- |> |> far as I can see there is NO way to do this, you get register D0
- |> |> whether you like it or not.
- |>
- |> The return value is always in D0 unless the function is returning
- |> a long, in which case it's in D0/D1.
-
- AACK! AACK! NO, DON'T SEND ME EMAIL! I MEANT "double", NOT "long"!
-
- double double double double double long (slap! Ow!) double double...
-
- --
- ***** / walker@unx.sas.com
- *|_o_o|\\ Doug Walker< BIX, Portal: djwalker
- *|. o.| || \ CompuServe: 71165,2274
- | o |//
- ======
- Any opinions expressed are mine, not those of SAS Institute, Inc.
-